package com.xuxin.baby.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by xu_xin
 * Created on 2020.08.10 0010
 * 学习券
 */
public class UserTicketBean extends BaseBean {
    private ResultBean result;

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ResultBean {
        private int totalCount;
        private List<ItemsBean> items;

        public int getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(int totalCount) {
            this.totalCount = totalCount;
        }

        public List<ItemsBean> getItems() {
            return items;
        }

        public void setItems(List<ItemsBean> items) {
            this.items = items;
        }

        public static class ItemsBean implements MultiItemEntity {
            private String creationTime;
            private String couponId;
            private TCouponBean tCoupon;
            private int memberId;
            private boolean isExpire;
            private String id;

            @Override
            public int getItemType() {
                if(!isExpire){
                    return 0;
                }else {
                    return 1;
                }
            }

            public String getCreationTime() {
                return creationTime;
            }

            public void setCreationTime(String creationTime) {
                this.creationTime = creationTime;
            }

            public String getCouponId() {
                return couponId;
            }

            public void setCouponId(String couponId) {
                this.couponId = couponId;
            }

            public TCouponBean getTCoupon() {
                return tCoupon;
            }

            public void setTCoupon(TCouponBean tCoupon) {
                this.tCoupon = tCoupon;
            }

            public int getMemberId() {
                return memberId;
            }

            public void setMemberId(int memberId) {
                this.memberId = memberId;
            }

            public boolean isIsExpire() {
                return isExpire;
            }

            public void setIsExpire(boolean isExpire) {
                this.isExpire = isExpire;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public static class TCouponBean {
                private String title;
                private String memo;
                private String startTime;
                private String endTime;
                private int points;
                private int validDays;
                private String id;

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public String getMemo() {
                    return memo;
                }

                public void setMemo(String memo) {
                    this.memo = memo;
                }

                public String getStartTime() {
                    return startTime;
                }

                public void setStartTime(String startTime) {
                    this.startTime = startTime;
                }

                public String getEndTime() {
                    return endTime;
                }

                public void setEndTime(String endTime) {
                    this.endTime = endTime;
                }

                public int getPoints() {
                    return points;
                }

                public void setPoints(int points) {
                    this.points = points;
                }

                public int getValidDays() {
                    return validDays;
                }

                public void setValidDays(int validDays) {
                    this.validDays = validDays;
                }

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }
            }
        }
    }
}